//
//  QinrenCell.m
//  QinrenManagers
//
//  Created by easaa on 15/8/3.
//  Copyright (c) 2015年 easaa. All rights reserved.
//

#import "QinrenCell.h"

@implementation QinrenCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)fillCellWithModel:(BookingModel *)model {

    self.type.text = @"亲仁节预约";
    
    model.bespeak_time =[model.bespeak_time stringByReplacingOccurrencesOfString:@"+" withString:@" "];
    if(![model.bespeak_time isEqualToString:@""]) {
        self.bespeak_time.text = model.bespeak_time;
    }else {
        self.bespeak_time.text = @"暂无信息";
    }
    if(![model.order_no isEqualToString:@""]) {
        self.order_no.text = model.order_no;
    }else {
        self.order_no.text = @"暂无信息";
    }
    if(![model.customer_truename isEqualToString:@""]) {
        self.customer_truename.text = model.customer_truename;
    }else {
        self.customer_truename.text = @"暂无信息";
    }
    if(![model.card_id isEqualToString:@""]) {
        self.card_id.text = model.card_id;
    }else {
        self.card_id.text = @"暂无信息";
    }
    
    model.create_time =[model.create_time stringByReplacingOccurrencesOfString:@"+" withString:@" "];
    if(![model.create_time isEqualToString:@""]) {
        self.creatTime.text = model.create_time;
    }else {
        self.creatTime.text = @"暂无信息";
    }
    if(![model.qinrenday_name isEqualToString:@""]) {
        self.qinrenday_name.text = model.qinrenday_name;
    }else {
        self.qinrenday_name.text = @"暂无信息";
    }
        
    if ([model.status isEqualToString:@"0"]) {
        self.status.text = @"审核中";
    } else if ([model.status isEqualToString:@"1"]) {
        self.status.text = @"审核通过";
    } else if ([model.status isEqualToString:@"2"]) {
        self.status.text = @"审核不能通过";
    } else if ([model.status isEqualToString:@"3"]) {
        self.status.text = @"取消";
    }

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
